<template>
  <div class="app-footer">
    <div class="app-footer__item" v-for="(item, index) in imgSrc" :key="index">
      <img :src="item.src" alt="">
      <p>{{item.name}}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'AppFooter',
  data () {
    return {
      imgSrc: [
        { src: require('../assets/icon/首页.png'), name: '首页' },
        { src: require('../assets/icon/发现.png'), name: '发现' },
        { src: require('../assets/icon/订单.png'), name: '订单' },
        { src: require('../assets/icon/我 的.png'), name: '我的' }
      ]
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang=scss>
  *{
    margin: 0px;
    padding: 0px;
  }
  .app-footer{
    width: 100%;
    height: 100px;
    background-color: #fff;
    position: fixed;
    left: 0px;
    bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    .app-footer__item{
      width: 25%;
      height: 70px;
      text-align: center;
      p{
        font-size: 23px;
        color: #818181;
      }
      img{
        width: 38px;
      }
    }
  }
</style>
